package com.longnows.appserver.service.impl;

import com.longnows.appserver.model.GridCategory;
import com.longnows.appserver.repository.GridCategoryRepository;
import com.longnows.appserver.service.GridCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GridCategoryServiceImpl implements GridCategoryService {

    @Autowired
    private GridCategoryRepository gridCategoryRepository;

    public List<GridCategory> getGridCategoryList (){
        return  gridCategoryRepository.findAll();
    }
}
